# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-flask-jwt-extended
_pkgname=Flask-JWT-Extended
pkgver=4.7.1
pkgrel=1
pkgdesc='Extended JSON Web Tokens (JWT) support for Flask.'
arch=('any')
url='https://pypi.org/project/Flask-JWT-Extended/'
license=('MIT')
depends=('python' 'python-black' 'python-cryptography'
         'python-flask' 'python-pallets-sphinx-themes' 'python-pre-commit'
         'python-pyjwt' 'python-sphinx' 'python-tox')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/Flask-JWT-Extended-$pkgver.tar.gz")
sha512sums=('a16cdbcf8edff797978e0432064514919e86a25b4960ba748c688566569391005c2a9a02d0336583f958ca83fd82a49327f46ee7d481e30f9894dbfc3e63e09e')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

